package com.un.ebs.inventory.domain;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.*;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.springframework.stereotype.Component;
import lombok.Data;
import com.un.ebs.core.metadata.DbField;

/**
 * (EntRelationExt)表实体类
 *
 * @author makejava
 * @since 2021-03-16 15:14:15
 */
@Data
@Component
@TableName("v_ent_relation_ext")
@SuppressWarnings("serial")
public class EntRelationExt extends Model<EntRelationExt> {

                
    @DbField(name = "id",  length = 40 , precision = 0)
    private String id;
                
    @DbField(name = "ent_id",  length = 40 , precision = 0)
    private String entId;
                
    @DbField(name = "code",  length = -1 , precision = 0)
    private Integer code;
                
    @DbField(name = "name",  length = 255 , precision = 0)
    private String name;
                
    @DbField(name = "remark",  length = 255 , precision = 0)
    private String remark;
                
    @DbField(name = "industry_type",  length = -1 , precision = 0)
    private Integer industryType;
                
    @DbField(name = "relation_type",  length = -1 , precision = 0)
    private Integer relationType;
                
    @DbField(name = "tenant_id",  length = 40 , precision = 0)
    private String tenantId;
                
    @DbField(name = "bank_name",  length = 100 , precision = 0)
    private String bankName;
                
    @DbField(name = "bank_account",  length = 50 , precision = 0)
    private String bankAccount;

    @DbField(name = "corp_addres", length = 200, precision = 0)
    private String corpAddres;

    @DbField(name = "tel", length = 20, precision = 0)
    private String tel;

    @DbField(name = "tax_no", length = 50, precision = 0)
    private String taxNo;

    @DbField(name = "tax_rate")
    private Double taxRate;

    @DbField(name = "province_id", length = -1, precision = 0)
    private Integer provinceId;

    @DbField(name = "city_id", length = -1, precision = 0)
    private Integer cityId;

    @DbField(name = "county_id", length = -1, precision = 0)
    private Integer countyId;
                
    @DbField(name = "province_name",  length = 100 , precision = 0)
    private String provinceName;
                
    @DbField(name = "city_name",  length = 100 , precision = 0)
    private String cityName;
                
    @DbField(name = "county_name",  length = 100 , precision = 0)
    private String countyName;
                
    @DbField(name = "is_temp_contract_send",  length = -1 , precision = 0)
    private Boolean isTempContractSend;
                
    @DbField(name = "open_api_user_id",  length = 40 , precision = 0)
    private String openApiUserId;
                
    @DbField(name = "open_api_personnel_name",  length = 255 , precision = 0)
    private String openApiPersonnelName;
            
    @TableLogic        
    @DbField(name = "is_delete",  length = -1 , precision = 0)
    private Boolean isDelete;


}